package com.kgc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @GetMapping("/hello")
    @ResponseBody
    public String hello(){
        return "Hello Git";
    }

    //张三写的方法
    @GetMapping("/m1")
    public String m1(){
        return "Hello m1";
    }

    //李四写的方法
    @GetMapping("/m2")
    public String m2(){
        return "Hello m2";
    }

    //aaaa
}
